package cn.ljs.android.util.ui.util;

import android.support.annotation.NonNull;
import android.support.annotation.StringRes;
import android.widget.Toast;
import cn.ljs.android.util.App;

/**
 * Created by Json on 21/1/2016.
 */
public class TUtils {

    public static void shortToast(@StringRes int res) {
        Toast.makeText(App.getInstance(), res, Toast.LENGTH_SHORT).show();
    }

    public static void longToast(@NonNull String s) {
        Toast.makeText(App.getInstance(), s, Toast.LENGTH_LONG).show();
    }

    public static void shortToast(@NonNull String s) {
        Toast.makeText(App.getInstance(), s, Toast.LENGTH_SHORT).show();
    }

    public static void longToast(@StringRes int res) {
        Toast.makeText(App.getInstance(), res, Toast.LENGTH_LONG).show();
    }
}
